#wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background-color: $livebg;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    .tab-content{
        height: 100%;
    }
    .live-area {
        padding-bottom: 50px;
        height: 100%;
        .tab-content{
            width: 200%;
            position: relative;
            left: 0;
            // -webkit-transition: left 0.25s ease-in-out 0s;
        }
        .tab-pane {
            width: 50%;
            height: 100%;
            // padding-top: 1%;
            overflow: hidden;
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            &:nth-child(2){
                left: 50%;
            }
            &:nth-child(3){
                left: 100%;
            }
        }
    }
    #scroll-2,#scroll-1{
        position: absolute;
        width: 100%;
        padding-bottom: 60px;
        min-height: 101%;
    }
    .deline-time {
        font-size: 12px;
        color: $default;
        display: block;
        margin: 10px 0;
        text-align: center;
        span {
            background-color: $gray;
            padding: 2px 10px;
            border-radius: 3px;
        }
    }
    .pullDown, .pullUp {
        background: transparent;
        height: 45px;
        line-height: 40px;
        padding: 0px 10px;
        font-size: 14px;
        color: #888;
        margin-top: -45px;
        text-align: center;
    }
    .pullDown .pullDownIcon {
        -webkit-transform:rotate(0deg) translateZ(0);
    }
    .pullUp .pullUpIcon  {
        -webkit-transform:rotate(-180deg) translateZ(0);
    }
    
    .pullDown.flip .pullDownIcon {
        -webkit-transform:rotate(-180deg) translateZ(0);
    }
    
    .pullUp.flip .pullUpIcon {
        -webkit-transform:rotate(0deg) translateZ(0);
    }
    
    .pullDown.loading .pullDownIcon, .pullUp.loading .pullUpIcon {
        background-position:0 100%;
        -webkit-transform:rotate(0deg) translateZ(0);
        -webkit-transition-duration:0ms;
    
        -webkit-animation-name:loading;
        -webkit-animation-duration:2s;
        -webkit-animation-iteration-count:infinite;
        -webkit-animation-timing-function:linear;
    }
    
    @-webkit-keyframes loading {
        from { -webkit-transform:rotate(0deg) translateZ(0); }
        to { -webkit-transform:rotate(360deg) translateZ(0); }
    }
    .pullDownLabel{
        display: inline-block;
        // min-width: 150px;
        height: 40px;
        line-height: 40px;
        vertical-align: top;
        text-align: left;
    }
    .pullDown .pullDownIcon, .pullUp .pullUpIcon {
        vertical-align: top;
        display: inline-block;
        width: 40px;
        height: 40px;
        background: url(../img/pull-icon@2x.png) 0 0 no-repeat;
        -webkit-background-size: 40px 80px;
        background-size: 40px 80px;
        -webkit-transition-property: -webkit-transform;
        -webkit-transition-duration: 250ms;
    }
    .pullDown .pullDownIcon {
        -webkit-transform: rotate(0deg) translateZ(0);
    }

    
    .live-msg-bubble {
        margin: 25px 10px;
        zoom: 1;
        text-align: left;
        text-align-last: left;
        font-weight: normal;
        position: relative;
        dd{
            max-width: 80%;
            position: relative;
        }
        &.host {
            .msg-content {
                background-color: $themeColor;
                color: $white;
            }
        }
        &.admin{
            .msg-author{
                span{
                    small{
                        background-color: #ff4800;
                        padding: 0 5px;
                        color: white;
                        border-radius: 20%;
                        margin-left: 5px;
                    }
                }
            }
        }

        &.manager{
            .msg-author{
                span{
                    small{
                        background-color: #0087e2;
                        padding: 0 5px;
                        color: white;
                        border-radius: 20%;
                        margin-left: 5px;
                    }
                }
            }
        }

        &.msg-left.host {
            .msg-content:after {
                border-right-color: $themeColor;
            }
        }
        &.msg-right.host{
            .msg-content:after{
                border-left-color: $themeColor;
            }
        }
        &:after {
            content: ".";
            display: block;
            height: 0;
            clear: both;
            visibility: hidden
        }
        .msg-content {
            display: inline-block;
            width: 100%;
            background-color: $white;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
            border-radius: 6px;
            padding: 10px;
            position: relative;
            word-wrap: break-word;
            word-break: break-all;
            .msg-origin{
                position: relative;
                overflow: hidden;
                padding: 5px;
                background-color: rgba(255,255,255,0.25);
                border-radius: 6px;
                margin-bottom: 5px;
                font-size: 14px;
                max-height: 100px;
                min-width: 150px;
                padding-bottom: 35px;
                height: auto;
                overflow: hidden;
                @include prefixer(transition,height 0.25s ease-out 0s);
                &.autoHeight{
                    @include prefixer(transition,height 0.25s ease-out 0s);
                    height: auto;
                    max-height: 10000px;
                    .unfold{
                        span.glyphicon{
                            @include prefixer(transform,rotateZ(180deg));
                        }
                    }
                }
                p,strong,small,div{
                    display: inline;
                }
                img{
                    min-width: 50px;
                    max-width: 100px;
                }
                .unfold{
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    text-align: center;
                    background-color: rgba(61, 55, 55, 0.7);
                    height: 30px;
                    cursor: pointer;
                    span.glyphicon{
                        margin-top: 8px;
                        color: white;
                        @include prefixer(transform,rotateZ(0deg));
                        @include prefixer(transition,transform 0.25s ease-out 0s);
                    }
                }
            }
            img, video {
                max-width: 100%;
            }
            img{
                &:nth-child(2){
                    margin-top: 5px;
                }
                &:nth-child(n+3){
                    margin-top: 10px;
                }
                max-width: 200px;
                height: auto;
                display: block;
            }
        }
        .msg-author{
            color: $default*1.5;
            font-size: 14px;
            .msg-like{
                position: absolute;
                right: 0;
                b,s,strong{
                    font-weight: normal;
                    font-style: normal;
                    text-decoration: none;
                }
                a{
                    color: $fontlight;
                    margin-left: 10px;
                    text-decoration: none;
                    position: relative;
                    &:hover,&:active{
                        text-decoration: none;
                    }
                }
                i{
                    margin-right: 2px;
                }
            }
        }
        &.msg-left {
            dt, dd {
                float: left;
            }
            dt {
                margin-right: 10px;
            }
            .msg-content{
                float: left;
                &:after {
                    content: "";
                    position: absolute;
                    display: block;
                    width: 0;
                    height: 0;
                    border-top: 1px solid transparent;
                    border-right: 7px solid $white;
                    border-bottom: 10px solid transparent;
                    left: -7px;
                    top: 6px;
                }
                &:before {
                    content: "";
                    position: absolute;
                    display: block;
                    width: 0;
                    height: 0;
                    border-top: 1px solid transparent;
                    border-right: 7px solid #cdcdcd;
                    border-bottom: 10px solid transparent;
                    left: -7px;
                    top: 7px;
                }
                .msg-origin{
                    background-color: rgba(0,0,0,0.1);
                }
            }
            .msg-author{
                margin-bottom: 5px;
                margin-top: -5px;
                overflow: hidden;
                span{
                    float: left;
                }
                .msg-img-id{
                    float: right;
                }
            }
        }
        &.msg-right {
            dt, dd {
                float: right;
            }
            dt {
                margin-left: 10px;
            }
            .msg-content{
                float: right;
                &:after {
                    content: "";
                    position: absolute;
                    display: block;
                    width: 0;
                    height: 0;
                    border-top: 1px solid transparent;
                    border-left: 7px solid #ffffff;
                    border-bottom: 10px solid transparent;
                    right: -7px;
                    top: 7px;
                }
                &:before {
                    content: "";
                    position: absolute;
                    display: block;
                    width: 0;
                    height: 0;
                    border-top: 1px solid transparent;
                    border-left: 7px solid #ccc;
                    border-bottom: 10px solid transparent;
                    right: -7px;
                    top: 6px;
                }
            }
            .msg-author{
                margin-bottom: 5px;
                margin-top: -5px;
                overflow: hidden;
                span{
                    float: right;
                }
                .msg-img-id{
                    float: left;
                }
            }
        }
        dt {
            display: inline-block;
            width: 42px;
            height: 42px;
            a {
                display: block;
                width: 100%;
                height: 100%;
                border-radius: 50%;
                background-color: $gray;
                overflow: hidden;
                img {
                    max-width: 100%;
                    max-height: 100%;
                }
            }
        }
    }

    #livepanel{
        .live-msg-bubble{
             dd{
                max-width: 80%;
                min-width: 68%;
                position: relative;
            }
        }

    }
    .live-messageList {
        padding: 2%;
        .list-group-item {
            display: block;
            .i-checkbox {
                display: inline-block;
                width: 18px;
                height: 18px;
                vertical-align: top;
                margin-right: 5px;
                background: url(../img/icheck.png) no-repeat 0 0;
                &.checked {
                    background-position: -40px 0;
                }
            }
        }
    }
}

.refrush-msg{
    display: table;
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 70px;
    right: 10px;
    text-align: center;
    line-height: 40px;
    background-color:rgba(0,0,0,0.25);
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border-radius: 50%;
    span{
        vertical-align: middle;
        display: table-cell;
        padding-bottom: 2px;
        font-size: 24px;
        -webkit-transform:rotate(0deg) translateZ(0);
    }
    &.loading{
        background-color: $white;
        span{
            color: $themeColor;
            -webkit-transform:rotate(0deg) translateZ(0);
            -webkit-transition-duration:0ms;
            -webkit-transform-origin: center;
            -webkit-animation-name:loading;
            -webkit-animation-duration:1.5s;
            -webkit-animation-iteration-count:infinite;
            -webkit-animation-timing-function:linear;
        }
    }
    &:active{
        background-color: rgba(255,255,255,0.8);
        span{
            color: $themeColor;
        }
    }
}
.no-more-refresh{
    border-radius: 20px;
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    margin: auto 5%;
    background-color: rgba(0,135,226,0.7);
    color: $white;
    padding: 5px 5%;
    text-align: center;
}